﻿
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/dashboard',
    name: '销售统计',
    icon: 'dashboard',
    component: './sales/Dashboard',
    access: 'isUser',
  },
  {
    name: '派单管理',
    icon: 'table',
    path: '/dispatch-order-list',
    component: './sales/DispatchOrderList',
    access: 'canDispatchOrder'
  },
  {
    name: '订单管理',
    icon: 'table',
    path: '/order-list',
    component: './sales/OrderList',
    access: 'isUser',
  },
  {
    name: '国家管理',
    icon: 'global',
    path: '/country-list',
    component: './sales/CountryList',
    access: 'isUser',
  },
  {
    name: '用户管理',
    icon: 'user',
    path: '/user-list',
    component: './sales/UserList',
    access: 'isAdmin',
  },
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    component: './404',
  },
];
